﻿@inject BaseWebElement _webElement;
@{
    Layout = null;
    var CompanyName = _webElement.GetCompanyName();
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>@(CompanyName)管理系统</title>
    <link rel="stylesheet" href="/assets/libs/layui/css/layui.css" asp-append-version="true" />
    <link rel="stylesheet" href="/assets/module/admin.css" asp-append-version="true" />
    <link rel="stylesheet" href="/assets/css/my.css" asp-append-version="true" />
    <link rel="stylesheet" href="/assets/module/theme/theme-red.css" asp-append-version="true" />
    <script type="text/javascript" src="/assets/libs/layui/layui.js" asp-append-version="true"></script>
    <script type="text/javascript" src="/assets/js/common.js" asp-append-version="true"></script>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <!-- 头部 -->
        <div class="layui-header">
            <div class="layui-logo">
                <cite>@(CompanyName)管理系统</cite>
            </div>
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item" lay-unselect>
                    <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a>
                        <cite name="username" style="min-width: 80px;display: inline-block;text-align: right; padding-right: 5px;"></cite>
                        <input name="staffCode" type="hidden" value="" />
                    </a>
                    <dl class="layui-nav-child">
                        <dd lay-unselect>
                            <a id="updatePassword" href="javascript:;">修改密码</a>
                            <a href="/manage/loginOut">退出</a>
                        </dd>
                    </dl>
                </li>
            </ul>
        </div>


        <!-- 侧边栏 -->
        <div class="layui-side">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree arrow2" lay-filter="admin-side-nav" lay-shrink="_all">
                    <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-username"></i>&emsp;<cite>用户管理</cite></a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="/manage/adminlist">后台人员管理</a></dd>
                            <dd><a lay-href="/manage/Password">修改密码</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-set"></i>&emsp;<cite>信息管理</cite></a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="/manage/WebElement">基础信息管理</a></dd>
                            <dd><a lay-href="/manage/LanguageType">语言版本管理</a></dd>
                            <dd><a lay-href="/manage/LanguageText">网站标签管理</a></dd>
                            <dd><a lay-href="/manage/ContentClass">网站栏目管理</a></dd>
                            <dd><a lay-href="/manage/MessageInfo">客户留言管理</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-layouts"></i>&emsp;<cite>内容管理</cite></a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="/manage/Banner">首页轮播图管理</a></dd>
                            <dd><a lay-href="/manage/WebHome">首页管理</a></dd>
                            <dd><a lay-href="/manage/FriendLink">友情链接管理</a></dd>
                            <dd><a lay-href="/manage/News">新闻管理中心</a></dd>
                            <dd><a lay-href="/manage/Products">产品管理</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <!-- 主体部分 -->
        <div class="layui-body"></div>
        <!-- 底部 -->
        <div class="layui-footer">
            <span class="pull-right" name="VersionSpan">Version 1.0.0</span>
        </div>
    </div>

    <!-- 加载动画 -->
    <div class="page-loading">
        <div class="ball-loader">
            <span></span><span></span><span></span><span></span>
        </div>
    </div>

    <!-- js部分 -->
    <script>
        layui.use(['layer', 'index', 'element', 'admin', 'form', 'notice', 'laydate'], function () {
            var $ = layui.jquery;
            var layer = layui.layer;
            var index = layui.index;
            var element = layui.element;
            var admin = layui.admin;
            var form = layui.form;
            var notice = layui.notice;
            var laydate = layui.laydate;
            // 默认加载主页
            index.loadHome({
                menuPath: '/manage/adminlist',
                menuName: '<i class="layui-icon layui-icon-home"></i>'
            });
            $("#updatePassword").click(function () {
                var check = layer.open({
                    type: 2,
                    title: '修改密码',
                    maxmin: true,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['400px', '300px'],
                    content: '/manage/Password',
                });
            });
        });
    </script>
</body>
</html>

